const {DataTypes, db, } = require("../db");
db.define('roleMenu', {
    id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true},
    tenantId: {type: DataTypes.INTEGER,},
    roleId: {type: DataTypes.INTEGER,},
    menuId: {type: DataTypes.INTEGER,},
    canAdd: {type: DataTypes.INTEGER,},
    canEdit: {type: DataTypes.INTEGER,},
    canDel: {type: DataTypes.INTEGER,},
    canAccount: {type: DataTypes.INTEGER,},
    canWaste: {type: DataTypes.INTEGER,},
    menuName: {type: DataTypes.STRING,},
}, {
    tableName: 'role_menu',
    timestamps: false
});